package com.shaoshaohuo.app.ui.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;

import com.shaoshaohuo.app.R;
import com.shaoshaohuo.app.ui.BaseActivity;
import com.shaoshaohuo.app.ui.MainTabActivity;
import com.shaoshaohuo.app.view.EcNavigationView;

public class EcMainFragmentWithBottonNavigation extends Fragment implements
        OnClickListener {

    private EcNavigationView navView;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.activity_ec_main_with_navigation_bottom, container, false);

        navView = (EcNavigationView) view.findViewById(R.id.nav_bottom);
        navView.setonchange(new EcNavigationView.ChangeListenr() {
            @Override
            public void change() {
                MainTabActivity activity = (MainTabActivity) getActivity();
                activity.maintabchangeStatusBar(BaseActivity.TransltestausModel.NoePicter, getResources().getColor(R.color.color_49b152));
            }
        });
        navView.changefragment(EcMainFragment.sharedInstance(""));

        return view;
    }

    @Override
    public void onClick(View v) {

    }

    @Override
    public void onResume() {
        super.onResume();
//		Log.i("EcMainFragmentWithBottonNavigation", "resume");
    }
  public void setcuritem(int index){
      navView.curtitem(index);
  }

    public void setnum(int num) {
        navView.setnum(num);
    }
}
